home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / prog_gen / gcoope10.zip / LATEADDS.TXT < prev    next >
Text File  |  1994-07-23  |  2KB  |  46 lines

  1.  
  2.                              GCOOPE Version 1.0
  3.  
  4.                               July 24, 1994
  5.  
  6.             Several last minute upgrades have been added to the GCOOPE
  7.         system and do not appear in the documentation.  There is a
  8.         new kernel function defined in class.c.  This function is
  9.         cpyGMas, it is used to effectively rename a generic function
  10.         in order to eliminate generic name conflicts and/or rename
  11.         a generic function to reflect a new context meaning.
  12.             This function does not affect the original generic function
  13.         but rather adds a new generic function which uses a particular
  14.         method of the original generic function.  The prototype is:
  15.                 stat cpyGMas(object currentClassObjectHandle,
  16.                              generic newGenericFunctionName,
  17.                              object owningClassOfMethod,
  18.                              generic originalGenericName);
  19.  
  20.             Examples of its use can be seen in the RENGM macro
  21.         given in gcoope10.h and in the class definitions Dynmem and
  22.         Collect(ion).
  23.             Another modification is to the Puts and Gets generic
  24.         functions, while they perform similarly to the ANSI C library
  25.         functions fputs/fgets they take/return String objects rather than 
  26.         character pointers.  Puts will attempt to translate the passed
  27.         object into a String object.  
  28.             In part because of the modifications to Puts and Gets,
  29.         another new kernel function has been defined: bounceBack.
  30.  
  31.                 object bounceBack(object,...);
  32.  
  33.             This function simply returns the first parameter, hence
  34.         the name bounceBack.  It is provided so that any attempt to
  35.         translate an object into its own class type can perform 
  36.         successfully.  In other words, 
  37.             
  38.             g(asString)(anyStringObjectInstance)
  39.  
  40.                                 will return a String class object given
  41.         by anyStringObjectInstance.  This approach avoids the need for
  42.         checks of class type in routines desiring type translation.
  43.            
  44.  
  45.  
  46.